package test_unitaire;

import static org.junit.Assert.assertTrue;

import org.junit.Test;

import buisness_service.Finance_annee;
import buisness_service.Finance_mois;
import buisness_service.Rapport.Mois;
import buisness_service.User;

public class Test_Depense_annee {

	@Test
	public void testDepense_annee() {

		User u = new User();
		Finance_annee f = new Finance_annee(2000, u.getRapport());
		Finance_mois f_m = new Finance_mois(Mois.Avril, f, u);
		assertTrue(f.getDepense_annee().getFinance_annee() == f);
		assertTrue(f.getDepense_annee().getDepenses_mois().get(0)== f_m.getDep_mois());
		
	}

}
